<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initRestRoute()
    {
        $this->bootstrap('frontController');
        $frontController = Zend_Controller_Front::getInstance();
        $restRoute = new Zend_Rest_Route($frontController, array(), array(
            'api',
        ));
        $frontController->getRouter()->addRoute('rest', $restRoute);
    }
    
//    protected function _initDB()
//    {	
////        $params = array(
////    'host'     => 'zooxanthellae.com',
////    'username' => 'zooxanth_mystuff',
////    'password' => 'wecandoit25',
////    'dbname'   => 'zooxanth_mystuff',
////    'profiler' => true  // turn on profiler // set to false to disable (disabled by default)
////        );
////        $dbAdapter = "PDO_MYSQL";
////        $db = Zend_Db::factory($dbAdapter, $params);
////        Zend_Registry::set('db', $db);
////        Zend_Db_Table_Abstract::setDefaultAdapter($db);
//    }  
}

